import http from '@/utils/http'

/** @desc 查询字典列表 */
export function listDictData() {
  return http.get<Record<string, any[]>>('/common/dict')
}

/** @desc 查询校区列表 */
export function listCampus() {
  return http.get('/common/campus/list')
}

/** @desc 提交错误 */
export function submitError(req: any) {
  return http.post('/common/error/submit', req)
}

export function listArrangeTemplate(query: any) {
  return http.get('/p/common/arrange-template/list', query)
}

export function listTimeTemplate() {
  return http.get('/p/common/time-template/list')
}

export function listTeacher() {
  return http.get('/p/common/teacher/list')
}
